package com.lucanjun.cn.springboot.multipledatasources.business.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lucanjun.cn.springboot.multipledatasources.business.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author lucanjun
 * @version 1.0.0
 * @title User
 * @create 2024-12-19 17:45:58
 * @description 用户表
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_user")
@Schema(name = "User", description = "用户表")
public class User extends BaseEntity {

    @Schema(description = "姓名")
    private String userName;

    @Schema(description = "密码")
    @TableField("`password`")
    private String password;

    @Schema(description = "性别，0：女，1：男")
    private Byte sex;

    @Schema(description = "年龄")
    private Byte age;
}
